package com.hibase.upms.entity.role.vo;

import com.hibase.core.web.annotation.HibaseValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import java.util.List;

/**
 * @author ChrisCui
 * @date 2019-4-16
 */
@Data
@ApiModel("新增角色vo")
@HibaseValid
public class MdsRoleInsertVO {

    @ApiModelProperty(value = "系统编码")
    private String sysCode;

    @NotBlank(message = "角色代码不能为空")
    @ApiModelProperty(value = "角色代码", example = "OrgCode001")
    private String code;

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称", example = "海晨物流")
    private String name;

    @ApiModelProperty(value = "备注", example = "备注")
    private String remarks;

    @ApiModelProperty(value = "用户id集合")
    private List<String> userId;
}
